﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    public class FreightInfo
    {
        /// <summary>
        /// 单号
        /// </summary>
        public string OrderNO { get; set; }
        /// <summary>
        /// 发货地址
        /// </summary>
        public string ShipAddress { get; set; }
        /// <summary>
        /// 收货地址
        /// </summary>
        public string DeliveryAddress { get; set; }
        /// <summary>
        /// 发货时间
        /// </summary>
        public DateTime? ShipDate { get; set; }
        /// <summary>
        /// 收货时间
        /// </summary>
        public DateTime? DeliveryDate { get; set; }
        /// <summary>
        /// 是否已交付
        /// </summary>
        public bool Deliveried { get; set; }
        /// <summary>
        /// 收货国家
        /// </summary>
        public Country CountryModel { get; set; }
        /// <summary>
        /// 发货国家编号
        /// </summary>
        public int ShipCountryID { get; set; }
        /// <summary>
        /// 发货国家
        /// </summary>
        public string ShipCountry { get; set; }
        /// <summary>
        /// 收货国家编号
        /// </summary>
        public int DeliveryCountryID { get; set; }
        /// <summary>
        /// 收货国家缩写
        /// </summary>
        public string DeliveryCountryCode { get; set; }
        /// <summary>
        /// 收货国家
        /// </summary>
        public string DeliveryCountry { get; set; }
        /// <summary>
        /// 收货州(省)缩写
        /// </summary>
        public string DeliveryStateCode { get; set; }
        /// <summary>
        /// 收货城市(市/县)
        /// </summary>
        public string DeliveryCity { get; set; }
        /// <summary>
        /// 发货地址邮编
        /// </summary>
        public string ShipZip { get; set; }
        /// <summary>
        /// 收货地址邮编
        /// </summary>
        public string DeliveryZip { get; set; }
        /// <summary>
        /// 发货人
        /// </summary>
        public string Shipper { get; set; }
        /// <summary>
        /// 收货人
        /// </summary>
        public string Consignee { get; set; }

        public string Status { get; set; }

        public string ResultText { get; set; }

        /// <summary>
        /// 单据类型
        /// </summary>
        public OrderTypeEnum OrderType { get; set; }

        public FreightInfo()
        {
            this.Consignee = "";
            this.Deliveried = false;
            this.DeliveryAddress = "";
            this.DeliveryCountry = "";
            this.DeliveryDate = null;
            this.DeliveryZip = "";
            this.OrderNO = "";
            this.ShipCountry = "";
            this.ShipDate = null;
            this.Shipper = "";
            this.ShipZip = "";
            this.Status = "";
            this.ResultText = "";
        }
    }
}
